package futuremode;

/**
 * Created by 11202 on 2019/3/8.
 */
public class RealData implements Data{

    protected String result;

    public RealData(String para) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < 10; i++) {
            sb.append(para);
            try {
                Thread.sleep(500);
            } catch (Exception e) {
                // TODO: handle exception
            }
            result = sb.toString();
        }
    }

    @Override
    public String getResult() {
        // TODO Auto-generated method stub
        return result;
    }

}
